package com.happyass.service;

import com.happyass.pojo.Role;

import java.util.List;
import java.util.Optional;

public interface RoleService {

    List<Role> getRoles();

    Optional<Role> getRoleById(Integer RoleId);

    boolean addRole(Role role);

    boolean delRole(Integer RoleId);

    boolean updateRole(Role role);

    boolean updateRoleByStaffId(Integer staffId, Integer roleId);

}
